package com.workcell.workdata.xthings.constant;


import lombok.AllArgsConstructor;
import lombok.Getter;

public interface HeatExchangersDataStatusEnum {

	@Getter
	@AllArgsConstructor
	enum RunStatusEnum{
		NORMAL("1","异常"),
		ABNORMAL("2","正常"),
		OVER("","");
		private String code;
		private String msg;

		public static RunStatusEnum getByCode(String code) {
			for (RunStatusEnum runStatusEnum : values()) {
				if (runStatusEnum.getCode().equals(code)) {
					//获取指定的枚举
					return runStatusEnum;
				}
			}
			return RunStatusEnum.OVER;
		}
	}
}
